﻿/**
*结案
*/
Chenxin.UI.CloseCaseLitigationForm = Chenxin.extend(Chenxin.UI.FormCommon, {
    actionUrl: '/service/logic/ShowListLitigation.ashx',
    id: 'CloseCaseLit',
    renderTo: 'divCloseCase',
    title: '结案',
    jqmWidth: 600,
    defBBtn:true,
    createForm: function() {
        return Chenxin.FormCommon.CloseCaseLitigationForm(this.id);
    },
//    initFormValidator:function(){
//	    //结案金额
//        $("#SettledMoney").formValidator({
//            validatorgroup: this.id,
//            onshow: "请输入结案金额！",
//            onfocus: "结案金额为必输项",
//            oncorrect: " "
//        }).inputValidator({ 
//            min: 1,
//            empty: {
//                leftempty: false,
//                rightempty: false,
//                emptyerror: "结案金额不能为空！"
//            },
//            onerror: "结案金额不能为空！"
//        });
//    },
    initEvent: function() {
        /*************事件：只输入数字*************/
        $("input[name='SettledMoney']").keydown(function (event) {
            if (((event.keyCode > 47) && (event.keyCode < 58)) || 
                  ((event.keyCode > 95) && (event.keyCode < 106)) ||
                  (event.keyCode == 110) || (event.keyCode == 8) ||   
                  (event.keyCode == 190)) {
                return true;      
            } else {      
                return false;      
            }      
        });
    },
    saveSucc: function() {
        this.reloadGrid();
    },
    initComponent: function() {
        Chenxin.UI.CloseCaseLitigationForm.superclass.initComponent.call(this);
    }
});

Chenxin.FormCommon.CloseCaseLitigationForm=function(formID){
	return '<table class="tbl_f"><tr><th style="width:105px; height:26px;">成交编号：</th><td><input name="ContractCode" class="inputbox_n fl" type="text" readonly="readonly" style="width:150px;"/></td></tr><tr><th>结案金额：</th><td><input name="SettledMoney" class="inputbox_n fl" type="text" style="width:150px;ime-mode:disabled;"/>元</td></tr><tr><th>物业地址：</th><td colspan="3"><input name="HouseAddress" class="inputbox_n fl" type="text" style="width:430px;"readonly="readonly"/></td></tr><tr><th>处理建议：</th><td colspan="3"><textarea id="Suggestion" name="Suggestion" cols="80" rows="2" style="width: 430px; height: 65px;"class="textarea_n fl"></textarea></td></tr><tr><td colspan="2" ><input type="hidden"  name="RecordId" /></td></tr></table>';
};